/*
 * @Author: only
 * @Date: 2025-03-06 16:56:15
 * @LastEditors: sueRimn
 * @LastEditTime: 2025-03-11 13:45:25
 */
import request from "@/utils/request";

// 查询安排列表
export function vendorScheduleList(data) {
  return request({
    url: "/vendor/schedule/list",
    method: "post",
    data: data,
  });
}

// 新增安排列表
export function vendorScheduleAdd(data) {
  return request({
    url: "/vendor/schedule/add",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 修改安排信息
export function vendorScheduleUpdate(data) {
  return request({
    url: "/vendor/schedule/update",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 获取待安排的企业列表
export function vendorScheduleGetWaitList(data) {
  return request({
    url: "/vendor/schedule/get_wait_list",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 获取详细信息
export function vendorScheduleGetInfo(data) {
  return request({
    url: "/vendor/schedule/get_info",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 科室负责人审核
export function vendorScheduleResponsibilityAudit(data) {
  return request({
    url: "/vendor/schedule/responsibility_audit",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 经办人审核 （提交审核/撤回）
export function vendorScheduleOperatorAudit(data) {
  return request({
    url: "/vendor/schedule/operator_audit",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 更新
export function vendorRequirementsUpdate(data) {
  return request({
    url: "/vendor/sampling/requirements/update",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}


// 重新抽调
export function vendorRestartTransfer(data) {
  return request({
    url: "/vendor/schedule/restart_transfer",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}
